package com.yida.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yida.service.serverblog;

@Controller
@RequestMapping("/admin")
public class blogdelete {

	@Autowired
	public serverblog service;
	
	@RequestMapping("/delect")
	@ResponseBody
	public String delete(Integer id) {
		boolean zhi =  service.delectblog(id);
		if (zhi) {
			return "1";
		}else {
			return "0";
		}
		
	}
}
